enum dtype_record_define {
	TYPE(RECORD_DEFINE)=0x3210
};
enum subtype_record_define {
	SUBTYPE(RECORD_DEFINE,GOODS)=0x1,
	SUBTYPE(RECORD_DEFINE,ORDER),
	SUBTYPE(RECORD_DEFINE,READ),
	SUBTYPE(RECORD_DEFINE,CHECK),
	SUBTYPE(RECORD_DEFINE,WRITE),
	SUBTYPE(RECORD_DEFINE,UPDATE)
};

typedef struct record_define_goods{
	char * record_no;
	char * goods_name;
	char * goods_info;
	char * goods_price;
}__attribute__((packed)) RECORD(RECORD_DEFINE,GOODS);

typedef struct record_define_order{
	char * record_no;
	char * customer_name;
	char * goods_no;
	char * number;
	char * addr;
	char * phone_num;
	char * order_state;
}__attribute__((packed)) RECORD(RECORD_DEFINE,ORDER);

typedef struct record_define_read{
	char * record_no;
}__attribute__((packed)) RECORD(RECORD_DEFINE,READ);

typedef struct record_define_check{
	char * record_no;
}__attribute__((packed)) RECORD(RECORD_DEFINE,CHECK);

typedef struct record_define_write{
	char * record_no;
	char * segment;
	char * text;
}__attribute__((packed)) RECORD(RECORD_DEFINE,WRITE);

typedef struct record_define_update{
	char * record_no;
	char * segment;
	char * text;
}__attribute__((packed)) RECORD(RECORD_DEFINE,UPDATE);
